// index.h : index
// 2009-09

#include <stdlib.h>
#include <stdint.h>
#include <stdio.h>

#ifndef INCLUDED_INDEX_H
#define INCLUDED_INDEX_H

struct index_t {
	uint32_t ip;
	uint32_t addr;

	index_t( void ) { Reset(); }
	inline void Reset( void ) { ip = addr = 0; }
};

struct indexs_t {
	size_t size;
	struct index_t *data;

	indexs_t( void ) { Reset(); }
	~indexs_t( void );

	inline void Reset( void ) { size = 0; data = NULL; }
	int LoadAllIndex( FILE *fp, size_t start, size_t num );
};

extern struct indexs_t g_indexs;

#endif // INCLUDED_INDEX_H
